$OpenBSD: patch-libzeitgeist_log_vala,v 1.5 2014/04/06 12:09:14 ajacoutot Exp $

From 3fe95cdb5a4c48d3b6606ffb1f60fae3e375fdff Mon Sep 17 00:00:00 2001
From: Seif Lotfy <seif@lotfy.com>
Date: Tue, 04 Mar 2014 19:55:53 +0000
Subject: Replace get_nprocs_conf with g_get_num_processors()

From d2c966faf4979b5745ea0df8062795fc82b9fcc1 Mon Sep 17 00:00:00 2001
From: Rico Tzschichholz <ricotz@ubuntu.com>
Date: Mon, 17 Mar 2014 20:02:01 +0000
Subject: Require glib >= 2.35.4 according to the usage of g_get_num_processors()

--- libzeitgeist/log.vala.orig	Sun Apr  6 13:39:13 2014
+++ libzeitgeist/log.vala	Sun Apr  6 13:39:07 2014
@@ -40,6 +40,7 @@
  * Zeitgeist also comes with a blacklist extension to make sure the user
  * always stays in control of what information is logged.
  */
+
 namespace Zeitgeist
 {
 
@@ -58,9 +59,6 @@ namespace Zeitgeist
  */
 public class Log : QueuedProxyWrapper
 {
-    [CCode (cheader_filename = "sys/sysinfo.h", cname = "get_nprocs_conf")]
-    extern static int get_nprocs_conf ();
-
     class DbWorker
     {
         private unowned ThreadFunc<void*> func;
@@ -141,7 +139,7 @@ public class Log : QueuedProxyWrapper
         try {
             threads = new ThreadPool<DbWorker>.with_owned_data ((worker) => {
                 worker.run ();
-            }, get_nprocs_conf (), true);
+            }, (int) get_num_processors (), true);
         } catch (ThreadError err) {
             warning ("%s", err.message);
             threads = null;
@@ -637,4 +635,3 @@ public class Log : QueuedProxyWrapper
 
 }
 
-// vim:expandtab:ts=4:sw=4
